<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<style>
 	.myinput{
 		border-top-right-radius: 5px; 
		border-top-left-radius: 5px; 
		border-bottom-right-radius:5px;
		border-bottom-left-radius:5px;
 	}
</style>
<div class="blog-masthead">
	<div class="container">
		<nav class="blog-nav" style="display: flex;align-items: center;">
			<c:if test="${loginUser == null}">
				<a class="blog-nav-item active" href="${pageContext.request.contextPath}/TblogServlet?method=index">博客</a> 
				<a class="blog-nav-item" href="${pageContext.request.contextPath}/UserServlet?method=tologin">登录</a> 
				<a class="blog-nav-item" href="${pageContext.request.contextPath}/view/user/register.jsp">注册</a> 
			</c:if>
			<a class="blog-nav-item" href="${pageContext.request.contextPath}/VoteServlet?method=voteList">投票</a> 
			<c:if test="${loginUser != null}">
				<a class="blog-nav-item active" href="${pageContext.request.contextPath}/TblogServlet?method=index">博客</a> 
				<a class="blog-nav-item" href="${pageContext.request.contextPath}/TblogServlet?method=personal">个人中心</a>
				<a class="blog-nav-item" href="${pageContext.request.contextPath}/UserServlet?method=logOut">退出</a>
				<a class="blog-nav-item" href="${pageContext.request.contextPath}/view/user/modifypassword.jsp">修改密码</a>
			</c:if>
				<form action="${pageContext.request.contextPath}/SearchServlet?method=search" method="post">
				<a class="blog-nav-item"> 
                <input class="form-control myinput" type="text" style="color: #000;width: 300px;" value="${searchText }"  name="searchText" id="searchText" placeholder="输入内容查询">
				</a>
				<a class="blog-nav-item"> 
					<button type="submit" class="btn btn-primary myinput" style="" >查 询</button>
				</a>
				</form>
		</nav>
	</div>
</div>